package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * dragon
 * </p>
 *
 * @author sy
 * @since 2023-06-20
 */
@Getter
@Setter
@TableName("dragon_follow")
public class Follow implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 客户ID
     */
    private Integer customerId;

    /**
     * 跟进名称
     */
    private String followName;

    /**
     * 跟进内容
     */
    private String content;

    /**
     * 跟进类型：0电话回访，1线下拜访，2线上联系
     */
    private String type;

    /**
     * 跟进进度
     */
    private String progress;

    /**
     * 状态：0 待审核 1审核通过 2审核不通过 3作废 4删除
     *
     */
    private Integer status;

    /**
     * 下次联系时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date nextTime;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    /**
     *跟进人ID
     */
    private Integer adminId;

    /**
     * 部门id
     */
    private Integer departmentId;

    /**
     * 工作流json
     */
    @TableField(exist = false)
    private List<WorkflowJson> workflowJsonList;


    /**
     * 客户名称
     */
    @TableField(exist = false)
    private String customerName;

    /**
     * 申请人名称
     */
    @TableField(exist = false)
    private String applicantName;

    /**
     * 评论list
     */
    @TableField(exist = false)
    private List<Comment> commentList;

    /**
     * 附件列表
     */
    @TableField(exist = false)
    private List<OtherFile> otherFileList;
}
